package com.sky.mapper;

import com.sky.annotation.AutoFill;
import com.sky.entity.User;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

/**
 * @author wfyn
 * @date 2023/10/6
 */

public interface UserMapper {
    @Select("SELECT * from user where openid = #{openid}")
    User getByOpenId(String openid);



    Integer insert(User user);


    @Select("SELECT * from user where id = #{id}")
    User getById(Long userId);

    Integer countByMap(Map map);
}
